package com.ktjy.mapper;

import com.ktjy.pojo.SysRole;
import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    //查询总数
    int count(@Param("realName") String realName,
              @Param("roleId") Integer roleId);


    List<SysUser> getUserListByParams(@Param("realName") String realName,
                                      @Param("roleId") Integer roleId,
                                      @Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);

    SysUser login(@Param("account") String account, @Param("password") String password);

    SysUser selectAccount(String account);

    int insert(SysUser sysUser);

    SysUser selectById(Integer id);

    int delete(Integer id);

    int updateXX(SysUser sysUser);

    int UpdatePwd(@Param("pwd")String pwd,
                  @Param("jpwd") String jpwd,
                  @Param("id") Integer id);
}
